import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { ProductionPlanRoutingModule } from './production-plan-routing.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppCommonModule } from '@app/shared/common/app-common.module';
import { UtilsModule } from '@shared/utils/utils.module';
import { CountoModule } from 'angular2-counto';
import { ModalModule, TabsModule, TooltipModule, BsDropdownModule, PopoverModule } from 'ngx-bootstrap';
import { ChartModule } from 'primeng/chart';
import { NgxChartsModule } from '@swimlane/ngx-charts';
import { TableModule } from 'primeng/table';
import { TreeModule } from 'primeng/tree';
import { BsDatepickerModule, BsDatepickerConfig, BsDaterangepickerConfig, BsLocaleService } from 'ngx-bootstrap/datepicker';
import { NgxBootstrapDatePickerConfigService } from 'assets/ngx-bootstrap/ngx-bootstrap-datepicker-config.service';
import { LightboxModule } from 'primeng/lightbox';
import { AdminModule } from '../admin/admin.module';
import { ToggleButtonModule } from 'primeng/togglebutton';
import { ButtonModule } from 'primeng/button';
import { DialogModule } from 'primeng/dialog';
import { DropdownModule } from 'primeng/dropdown';
import { RadioButtonModule } from 'primeng/radiobutton';
import { InputSwitchModule } from 'primeng/inputswitch';
import { StepsModule } from 'primeng/steps';
import {
    AutoCompleteModule,
    CardModule,
    ContextMenuModule,
    DragDropModule,
    EditorModule,
    FileUploadModule,
    InputMaskModule,
    MultiSelectModule,
    PaginatorModule,
    TabViewModule,
    CalendarModule
} from 'primeng/primeng';
import { TextMaskModule } from 'angular2-text-mask';
import { ImageCropperModule } from 'ngx-image-cropper';
import { ChipsModule } from 'primeng/chips';
import { RocketMissionComponent } from './rocket-mission/rocket-mission.component';
import { SpinnerModule } from 'primeng/spinner';
import { SliderModule } from 'primeng/slider';
import { ProductionPreparationComponent } from './production-preparation/production-preparation.component';
import { ManufacturePlanComponent } from './manufacture-plan/manufacture-plan.component';
import { OrganizationChartModule } from 'primeng/organizationchart'
@NgModule({

    imports: [
        DialogModule,
        StepsModule,
        RadioButtonModule,
        InputSwitchModule,
        DropdownModule,
        OrganizationChartModule,
        SpinnerModule,
        CommonModule,
        ProductionPlanRoutingModule,
        SliderModule,
        ModalModule,
        TabsModule,
        ChartModule,
        TooltipModule,
        AppCommonModule,
        UtilsModule,
        CountoModule,
        NgxChartsModule,
        BsDatepickerModule.forRoot(),
        BsDropdownModule.forRoot(),
        TableModule,
        PaginatorModule,
        AdminModule,
        FormsModule,
        ReactiveFormsModule,
        FileUploadModule,
        ModalModule.forRoot(),
        TabsModule.forRoot(),
        TooltipModule.forRoot(),
        PopoverModule.forRoot(),
        BsDropdownModule.forRoot(),
        BsDatepickerModule.forRoot(),
        UtilsModule,
        AppCommonModule,
        TableModule,
        TreeModule,
        DragDropModule,
        ContextMenuModule,
        PaginatorModule,
        AutoCompleteModule,
        EditorModule,
        InputMaskModule,
        NgxChartsModule,
        CountoModule,
        TextMaskModule,
        ImageCropperModule,
        TabViewModule,
        CardModule,
        MultiSelectModule,
        CalendarModule,
        LightboxModule,
        ToggleButtonModule,
        ButtonModule,
        ChipsModule
    ], declarations: [
        RocketMissionComponent,
        ProductionPreparationComponent,
        ManufacturePlanComponent
    ],
    providers: [
        { provide: BsDatepickerConfig, useFactory: NgxBootstrapDatePickerConfigService.getDatepickerConfig },
        { provide: BsDaterangepickerConfig, useFactory: NgxBootstrapDatePickerConfigService.getDaterangepickerConfig },
        { provide: BsLocaleService, useFactory: NgxBootstrapDatePickerConfigService.getDatepickerLocale }
    ]
})
export class ProductionPlanModule { }
